const mongoose = require("mongoose");

const dataSchema = new mongoose.Schema({
  appId: {
    type: String,
    required: true,
  },
  userId: {
    type: String,
    required: true,
  },
  currentPage: {
    type: String,
    required: false,
  },
  url: {
    type: String,
    required: true,
  },
  status: {
    type: Number,
    required: false,
  },
  duration: {
    type: Number,
    required: true,
  },
    request: {
    type: String,
    required: false,
  },
    response: {
    type: String,
    required: false,
  },
  

  createTime: {
    type: Number,
    required: true,
  },
  ua: {
    type: String,
    required: true,
  },
});

module.exports = mongoose.model("http", dataSchema);
